import { ElMessageBox } from 'element-plus';

export async function showDeleteMessageBoxAsync() {
  try {
    await ElMessageBox.confirm('您确定要删除吗?', '警告', {
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      type: 'warning'
    });
    return true;
  } catch {
    return false;
  }
}

export async function showWarningMessageBoxAsync(message: string) {
  try {
    await ElMessageBox.confirm(message, '警告', {
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      type: 'warning'
    });
    return true;
  } catch {
    return false;
  }
}
